package com.tjetc.hw.hw3;

import java.io.FileOutputStream;
import java.io.IOException;

public class hw {
    public static void main(String[] args) throws IOException {
        FileOutputStream fileOutputStream = new FileOutputStream("D:\\c.txt", true);
        String content = "i love java\r\n";
        fileOutputStream.write(content.getBytes());
        fileOutputStream.write(content.getBytes());
        fileOutputStream.write(content.getBytes());
        fileOutputStream.write(content.getBytes());
        fileOutputStream.write(content.getBytes());
        fileOutputStream.write(content.getBytes());
    }
}
